package com.example.springdataelasticsearch.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiangwz
 * @create 2021/5/11.
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Document(indexName = "dog", type = "dog")
public class Dog {

    @Id
    private Long id;

    private String name;

    private Integer age;

    private String color;



}
